home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
SourceCode
/
ObjectPalette
/
SumObject.m
< prev
next >
Wrap
Text File
|
1992-12-19
|
508b
|
31 lines
#import "SumObject.h"
#import <stdio.h>
@implementation SumObject
- sumThem:sender
{
[sum setFloatValue:[summandOne floatValueAt:0]+[summandTwo floatValueAt:0]];
return self;
}
-(NXImage *)getIBImage
{
char buf[MAXPATHLEN + 1];
NXBundle *bundle;
NXImage *image;
image = [[NXImage alloc] init];
bundle = [NXBundle bundleForClass:[self class]];
if ( [bundle getPath:buf forResource:"Sobject" ofType:"tiff"] ) {
image = [[NXImage alloc] initFromFile:buf];
}
return(image);
}
@end